package com.pb.news.dao;

import com.pb.news.entity.News;

import java.sql.SQLException;
import java.util.List;

/**
 * NewsDaoImpl--BDQN_WEB_NEWS
 *
 * @author: Jovi
 * @createTime: 2018-03-21 16:13
 **/
public interface NewsDao {

    List<News> getNewsLists() ;

    boolean add(News news) ;

    boolean delete(int id) ;

    boolean update(News news);

    News getNewsById(int id);

    int getTotalCount() throws SQLException;

    List<News> getPageNewsList(int pageNo, int pageSize) throws SQLException;

    int getTotalCountProc();
}
